import Layout from '@/views/layout/Layout'
export const umsRouter= [
    {
        path:'/ums',
        component: Layout,
        redirect: '/ums/admin',
        name: 'ums',
        meta: {title: '权限', icon: 'ums'},
        children: [
          {
            path: 'app',name: 'app',
            component: () => import('@/views/oauth/app/index'),meta: {title: 'app列表', icon: 'ums-admin'}
          },
          {
            path: 'job',name: 'job',
            component: () => import('@/views/job/index'),meta: {title: '任务列表', icon: 'ums-admin'}
          },
          {
            path: 'admin',name: 'admin',
            component: () => import('@/views/ums/admin/index'),meta: {title: '用户列表', icon: 'ums-admin'}
          },
          {
            path: 'role',name: 'role',
            component: () => import('@/views/ums/role/index'),meta: {title: '角色列表', icon: 'ums-role'}
          },
          {
            path: 'allocMenu',name: 'allocMenu',
            component: () => import('@/views/ums/role/allocMenu'),meta: {title: '分配菜单'},hidden: true
          },
          {
            path: 'allocResource',name: 'allocResource',
            component: () => import('@/views/ums/role/allocResource'),meta: {title: '分配资源'},hidden: true
          },
          {
            path: 'menu',name: 'menu',
            component: () => import('@/views/ums/menu/index'),meta: {title: '菜单列表', icon: 'ums-menu'}
          },
          {
            path: 'addMenu',name: 'addMenu',
            component: () => import('@/views/ums/menu/add'),meta: {title: '添加菜单'},hidden: true
          },
          {
            path: 'updateMenu',name: 'updateMenu',
            component: () => import('@/views/ums/menu/update'),meta: {title: '修改菜单'},hidden: true
          },
          {
            path: 'resource',name: 'resource',
            component: () => import('@/views/ums/resource/index'),meta: {title: '资源列表', icon: 'ums-resource'}
          },
          {
            path: 'department',name: 'department',
            component: () => import('@/views/ums/department/index'),meta: {title: '部门列表', icon: 'ums-resource'}
          },
          {
            path: 'resourceCategory',name: 'resourceCategory',
            component: () => import('@/views/ums/resource/categoryList'),meta: {title: '资源分类'},hidden: true
          }
        ]
      }
    
]